using System;

 namespace QLST_DTO 
{
     [Serializable]
     public class CT_HOADON
     {
         private int soHoaDon;
         private int maHang;
         private int soLuong;
         private int donGia;
         private string dVT;
         public CT_HOADON()
         { }
         public CT_HOADON(int soHoaDon, int maHang, int soLuong, int donGia, string dVT)
         {
             this.soHoaDon = soHoaDon;
             this.maHang = maHang;
             this.soLuong = soLuong;
             this.donGia = donGia;
             this.dVT = dVT;
         }
         public int SoHoaDon
         {
             get { return this.soHoaDon; }
             set
             {
                 if (value == null)
                     throw new Exception("soHoaDon not allow nullvalue.");
                 this.soHoaDon = value;
             }
         }
         public int MaHang
         {
             get { return this.maHang; }
             set
             {
                 if (value == null)
                     throw new Exception("maHang not allow nullvalue.");
                 this.maHang = value;
             }
         }
         public int SoLuong
         {
             get { return this.soLuong; }
             set { this.soLuong = value; }
         }
         public int DonGia
         {
             get { return this.donGia; }
             set { this.donGia = value; }
         }
         public string DVT
         {
             get { return this.dVT; }
             set { this.dVT = value; }
         }
         public override string ToString()
         {
             return this.soHoaDon + "; " + this.maHang + "; " + this.soLuong + "; " + this.donGia + "; " + this.dVT + "; ";
         }

     }
} 